#ifndef APPSETTINGS_H
#define APPSETTINGS_H

#define COMPANY "Martin"
#define SOFTWARE "MemoryGame"


class QHeaderView;
class QTabWidget;

namespace AppSettings
{
    void setValue( const QString & valueName, const QVariant & value );
    QVariant value( const QString & valueName );

    void saveWidgetState( const QWidget & widget, const QString & widgetName );
    void restoreWidgetState( QWidget & widget, const QString & widgetName );

    void saveHeaderViewState( const QHeaderView & headerView, const QString & headerViewName );
    void restoreHeaderViewState( QHeaderView & headerView, const QString & headerViewName );

    void saveOpenFileDialogPath( const QString & openFileDialogName, const QString & filePath );
    QString restoreOpenFileDialogPath( const QString & openFileDialogName );
};

#endif